'''
Created on Oct 30, 2010

@author: linh-cl
'''
from time import strptime
from datetime import datetime
def str2DateTime( str, format = "%Y-%m-%d %H:%M:%S" ):
  t = strptime( str, format )
  d = datetime( t.tm_year, t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec )
  return d
